			<?php
                if(isset($_POST['doLogin']))
                {
                    if($msgStatus=='0')
                    {
                        $msg = '<div class="box error-box"> <span>E-mail doesn\'t exist!</span></div>';
                    }
                    else if($msgStatus=='1')
                    {
                        $msg = '<div class="box error-box"> <span>Please put your e-mail!</span></div>';
                    }
                    else if($msgStatus=='2')
                    {
                        $msg = '<div class="box error-box"> <span>Please put your password!</span></div>';
                    }
                    else if($msgStatus=='3')
                    {
                        $msg = '<div class="box error-box"> <span>Please put the captcha code!</span></div>';
                    }
                    else if($msgStatus=='4')
                    {
                        $msg = '<div class="box error-box"> <span>This account is not yet activated or not available!</span></div>';
                    }
                    else if($msgStatus=='5')
                    {
                        $msg = '<div class="box error-box"> <span>E-mail or password is incorrect!</span></div>';
                    }
                    else if($msgStatus==6)
                    {
                        $msg = '<div class="box error-box"> <span>Captcha mis-matched. Please try again!</span></div>';
                    }
                    else
                    {
                        $msg = '<div class="box success-box"> <span>You are successfully logged-in. Please wait...</span></div>';
                        header('Refresh: 3; url='.base_url().'dashboard');
                    }
                    echo '<div class="msgLoginHolder">'.$msg.'</div>';
                }
            ?>
            <div class="loginWrapper">
            <header>
            	<h1>SUMMON ADMINISTRATOR PANEL</h1>
                <div class="loginCaption">
                	<span>
                    	Security Verification
                    </span>
                </div>
            </header>
            <section>
            	<form action="./home/" method="post" />
                    <ul>
                        <li>
                            <ul>
                                <li>
                                    <label for="strEmail"><strong>Email Address</strong></label>
                                </li>
                                <li>
                                    <div class="iconWrapper">
                                        <i class="icon-user"></i>
                                    </div>
                                    <input type="text" name="strEmail" id="strEmail" placeholder="Email Address" autocomplete="off" required />
                                </li>
                            </ul>
                            <ul>
                                <li>
                                    <label for="strPassword"><strong>Password</strong></label>
                                </li>
                                <li>
                                    <div class="iconWrapper">
                                        <i class="icon-lock"></i>
                                    </div>
                                    <input type="password" name="strPassword" id="strPassword" placeholder="Password" required />
                                </li>
                            </ul>
                            <ul>
                                <li><label for="strCaptcha"><strong>Captcha</strong></label></li>
                                <li>
                                    <img width="100px" height="40px" src="<?=base_url()?>captcha?width=100&amp;height=40&amp;characters=5&amp;code=<?=$this->nativesession->get('captchaCode')?>" />
                                    <input type="hidden" name="reCaptchaHidden" value="<?=$this->nativesession->get('captchaCode')?>"/>
                                    <input type="text" name="strCaptcha" id="strCaptcha" placeholder="Captcha" autocomplete="off" maxlength="5" required />
                                </li>
                            </ul>
                            <ul>
                                <li>
                                    <button class="btn btn-info" name="doLogin" id="doLogin"><i class="icon-ok"></i> Sign On</button>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </form>
            </section>
            <footer>
    			<span class="forgotPassWrapper">
                	<a href="<?=base_url()?>forgot_password">Forgot your password?</a>
                </span>
            </footer>
        </div>
